package com.jiazhong.mingxing.boot.boot01.component;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;
@ConfigurationProperties(prefix = "student")
@PropertySource(value = "classpath:student3.properties",encoding = "utf-8")
@Component
@Data
@NoArgsConstructor
public class Student3 {
    private Integer id;
    private String name;
    private Character gender;
    private String[] loves;
    private Phone phone;
}
